from selenium import webdriver
from selenium.webdriver.common.by import By
import time
driver=webdriver.Edge()

driver.get('https://www.cnblogs.com/')
time.sleep(2)
driver.find_element(By.XPATH,'//*[@id="navbar_login_status"]/a[6]').click()
time.sleep(2)
driver.find_element(By.ID,'mat-input-0').send_keys('1508523005@qq.com')
time.sleep(2)
driver.find_element(By.ID,'mat-input-1').send_keys('zzd040708')
time.sleep(2)
driver.find_element(By.XPATH,'/html/body/app-root/app-sign-in-layout/div/div/app-sign-in/app-content-container/div/div/div/form/div/button/span[1]').click()
time.sleep(2)
print(driver.get_cookies())